'use strict';

/**
 * Swagger Mock 服务进程入口
 */

if (process.env.NODE_ENV === 'development') {
    // Transpile ES6 codes on the fly in development environment

    // Use the require hook to compile files written in es6 on the fly.
    // see [Require Hook](https://babeljs.io/docs/usage/require/)
    require('babel-register');

    require('../src/server/api-mock/').start();
} else {
    // Using transpiled codes in production environment
    require('../dist/mock.js').start();
};